package com.huitone.smspfm.context.app;

import java.io.IOException;
import java.net.ServerSocket;

/**   
* @Title AppLocalListener.java 
* @Package com.huitone.smspfm.context.app 
* @Description TODO(用一句话描述该文件做什么) 
* @author ybliang   
* @date 2017年3月27日 下午5:27:30 
* @version V1.0   
*/
public class AppLocalListener extends Thread {
	
	private int port = 8888;
	
	private static AppLocalListener instance;
	
	public AppLocalListener getInstance() {
		if (instance == null) {
			synchronized (AppLocalListener.class) {
				if (instance == null) {
					instance = new AppLocalListener();
				}
			}
		}
		return instance;
	}
	
	private AppLocalListener() {}

	@Override
	public void run() {
		
		try {
			ServerSocket serverSocket = new ServerSocket(port);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
